package com.app.bussinesslocator.Utils;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferenceHelper {
	private SharedPreferences sharedPreferences;
	public static final String PREFERENCE_FILE = "preference_file.com.bussinesslocator";
	
	public static final String LAT = "lat";
	public static final String LON = "lon";

	public PreferenceHelper(Context context) {
		this.sharedPreferences = context.getSharedPreferences("report", 0);
	}
	
	public String getLAT() {
		return this.sharedPreferences.getString(LAT, "");
	}

	public String getLON() {
		return this.sharedPreferences.getString(LON, "");
	}
	
	public void setLAT(double mLatitude) {
		SharedPreferences.Editor localEditor = this.sharedPreferences.edit();
		localEditor.putString(LAT, String.valueOf(mLatitude));
		localEditor.commit();
	}

	public void setLON(double mLongitude) {
		SharedPreferences.Editor localEditor = this.sharedPreferences.edit();
		localEditor.putString(LON, String.valueOf(mLongitude));
		localEditor.commit();
	}
	

}
